
{{tag>matériel conception_electronique}}

----

====== PicoScope ======

Installation des Oscilloscopes USB de la famille PicoScope de chez Pico Technologie

<note tip>Fonctionne bien en machine virtuelle sous virtualbox</note>


===== Compatibilité =====

  * PicoScope 2204
  * Picoscope ?

===== Pré-requis =====

  * Disposer des [[:sudo|droits d'administration]] ;
  * Disposer d'une connexion à Internet configurée et activée ;

===== Installation =====

Éditez /etc/apt/sources.list 
  sudo nano /etc/apt/sources.list

Copier à la fin du fichier la ligne ci dessous
  deb http://labs.picotech.com/debian picoscope main

Importez la clé publique
  wget -O - http://labs.picotech.com/debian/dists/picoscope/Release.gpg.key | sudo apt-key add -

Installer le logiciel Picoscope
  sudo apt-get update
  sudo apt-get install picoscope

===== Configuration =====


===== Utilisation =====

Vérifier la bonne détection de l'oscilloscope.

Pour cela utiliser le script **usbtest** livré avec le driver Linux de l'oscilloscope (se placer dans le répertoire libps2000-2.0.7.7-1.x86_64).

  ./usbtest 

  /****************************************************************************
  *                  Pico Technology Linux USB Diagnostics                   *
  ****************************************************************************
  
  This script looks for Pico USB devices connected to your computer
  and checks whether you are able to access them. If your user account
  does not have permission to access the devices, the script will try 
  to suggest how to correct this for your particular Linux installation.
  
  Press enter to continue...
  
  Getting user and group information...
   - You are running this script as moncompte.
   - You are in the following groups:     
       moncompte ... pico                                                                                                                                
  
  Please connect your Pico USB device and press enter to continue...
  
  Pico USB device found: /dev/bus/usb/001/004
  
   - It belongs to root (which is not you) who has permissions rw-
   - The members of group pico (which you are in) have permissions rw-
   - Everyone else has permissions r--                                
   - You can write to this device and so will be able to use it.

Remarque : j'ai modifié une erreur du script test sur la ligne if [ $devicefound -eq 1 ] par if [ $devicefound -eq 0 ]

Essai du picoscope

  gcc -lps2000 PS2000con.c -oPS2000con

  ./PS2000con

  PS2000 driver example program                                                               
  Version 1.0                                                                                 
  
  
  
  Opening the device...
  Handle: 1            
  Device opened successfully
  
  Driver Version: 3.6.2.0 Linux
  USB Version: 2.0             
  Hardware Version: 16         
  Variant Info: 2204           
  Serial: XFY11/557            
  
  B - immediate block                       V - Set voltages
  T - triggered block                       I - Set timebase
  Y - advanced triggered block    A - ADC counts/mV         
  E - ETS block                                             
  S - Streaming                                             
  F - Fast streaming                                        
  D - Fast streaming triggered                              
  G - Signal generator                                      
  H - Arbitrary signal generator                            
  X - exit                                                  
  Operation:                                                
  
  Collect block immediate...
  Press a key to start      
  timebase: 0     oversample:1
  First 10 readings           
  Value                       
  time unit:  2               
  (ps)                        
  159                         
  159                         
  -18                         
  -18                         
  159                         
  -18                         
  -18                         
  -18                         
  -18                         
  -18                         


===== Voir aussi ======


  * [[http://www.picotech.com/picoscope-oscilloscope-software.html|Site officiel de Pico Technologie]] (en)
  * [[http://www.picotech.com/linux.html|La page sur Linux]] (en)



----

//Contributeur principal : [[:utilisateurs:Sefran|Sefran]] Le 17/12/2009, 00:32//